import { Entity, Column, PrimaryGeneratedColumn,ManyToMany, ManyToOne, JoinColumn, OneToOne , BaseEntity, OneToMany } from 'typeorm';
import {
  walletFlowEnum
} from './walletFlow.enum'

@Entity('wallet_flow')
export class WalletFlow extends BaseEntity {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ name: 'wx_user' })
  wx_user: string;

  @Column({ name: 'use_amount' })
  use_amount: string;

  @Column({ name: 'status' })
  status: walletFlowEnum;

  @Column({ name: 'create_time' })
  create_time: Date;

  @Column({ name: 'update_time' })
  update_time: Date;
}
